       <?php include("header.php");?>
       <?php include("nav.php");?>
			<div class="banner">
				<div class="banner-content banner-content-home">
					
					<div class="title wow animated fadeInUp">国内领先的人工智能平台型企业</div>
					<div class="try font-14 wow animated fadeInUp"><a href="" class="try-link">申请试用</a></div>
				</div>
				<img src="<?php echo ASTRA_THEME_URI; ?>img/pic/index_banner.jpg" class="pic-img pc-show" />
				<img src="<?php echo ASTRA_THEME_URI; ?>img/pic/index_banner_m.jpg" class="pic-img pc-hide" />
			</div>
			<div class="ai-vision">
				<div class="lz-title wow animated fadeInUp">开创AI视觉算法商城</div>
				<div class="lz-tips wow animated fadeInUp">累计成熟算法1200+，覆盖100+行业</div>
				<div class="vis-content warp">
				    <?php $index = 1;$ai_index = 1;?>
				    <?php
				    $a= 2;
				    $args=array(
				    'orderby'    => 'id',
				    'hide_empty' => "0",
				    'child_of' => $a,//可以换为：'child_of' => '1',
				    );
				    $categories=get_categories($args);
				    foreach($categories as $category) {
				    ?>
					
					<div class="vis-left act box_<?php echo $ai_index;?>">
						<div class="vis-left-title"><?php echo $category->name; ?></div>
						<div class="vis-left-related">相关算法</div>
						<div class="vis-left-item">
						<?php $display_categories = array($category->term_id); foreach ($display_categories as $category->term_id) { ?>
						<?php query_posts("cat=$category->term_id&tag=hot")?>
						<?php while (have_posts()) : the_post(); ?>
							<div class="item-list">
								<a href="<?php the_permalink()?>"><?php the_title(); ?></a><span class="hot">热门</span>
							</div>
						<?php endwhile; ?>	
						<?php } wp_reset_query();?>
				    	</div>
				    	<a href="<?php echo get_category_link( $category->term_id ) ?>" class="seemore">查看更多</a>
				    </div>
					<?php $ai_index++;?>
				    <?php }?>
					
					<div class="vis-right wow animated slideInRight" id="<?php echo $ai_index ?>" @mouseover="handleOver">
					    
						<?php
						$a= 2;
						$args=array(
						'orderby'    => 'id',
						'hide_empty' => "0",
						'child_of' => $a,//可以换为：'child_of' => '1',
						);
						$categories=get_categories($args);
						foreach($categories as $category) {
						?>
						<a class="vis-right-item bob_<?php echo $index;?>" id="<?php echo $index ?>"
							@click="handleClick">
							<img src="<?php echo $category->description; ?>" />
							<div class="name"><?php echo $category->name; ?></div>
						</a>
						<?php $index++;?>
						<?php }?>
						<a href="<?php echo esc_url( home_url( '/' ) ); ?>market" class="vis-right-item vis-right-item-more">
							<img src="<?php echo ASTRA_THEME_URI; ?>img/pic/ai_09.png" />
							<div class="name" >更多行业</div>
						</a>
					</div>
				</div>
				<!--<div class="vis-right-img">
					<img :src="'<?php echo ASTRA_THEME_URI; ?>img/pic/ai_bg_'+(ai_index + 1)+'.jpg'" />
				</div>-->
			</div>
			<div class="algorithm">
				<div class="warp flex">
					<div class="alg-left wow animated slideInLeft">
						<div class="alg-left-top">
							<div class="txt">连接30万开发者</div>
							<p>打造<span class="big">多快好省</span>的算法商城</p>
							<div class="txt2">为产业客户提供优质的产品和服务</div>
						</div>
						<div class="list">
							<div class="list-li">
								<div class="name">
									算法<span>多</span>
								</div>
								<div class="tips">
									<span>1200+</span>算法 以标准化模块自由组合
								</div>
							</div>
							<div class="list-li">
								<div class="name">
									研发<span>快</span>
								</div>
								<div class="tips">
									仅需<span>8-12周</span>定制开发全新行业算法
								</div>
							</div>
							<div class="list-li">
								<div class="name">
									质量<span>好</span>
								</div>
								<div class="tips">
									平均准确率<span>90%</span>算法不断迭代优化
								</div>
							</div>
							<div class="list-li">
								<div class="name">
									花的<span>省</span>
								</div>
								<div class="tips">
									开发、应用部署、售后升级完整服务总<br><span>成本最优</span>
								</div>
							</div>
						</div>
					</div>
					<div class="alg-right flex-1 animated fadeInUp">
						<div class="title wow animated fadeInUp">“星光栈市”助力算法高效开发&便捷落地</div>
						<div class="tips wow animated fadeInUp">数据 → 模型 → 算法 → 应用，人工智能算法开发部署全流程环节覆盖</div>
						<div class="alg-content flex wow animated slideInRight">
							<div class="item flex-1">
								<div class="block-circle">
									<div class="circle"></div>
									<div class="circle"></div>
									<div class="circle"></div>
								</div>
								<div class="block-1"></div>
								<div class="block-2">
									<div class="block-top flex">
										<div class="block-2-img"></div>
										<div class="block-2-txt">
											<div class="name">极星</div>
											<p>算法推理部署平台</p>
										</div>
									</div>

									<div class="list">
										<div class="name">面向产业方向</div>
										<div class="list-li">海量多元的算法商城</div>
										<div class="list-li">算法小时级部署</div>
										<div class="list-li">兼容各类硬件设备</div>
										<div class="list-li">算法自训练优化</div>
										<div class="more"><a href=""><img src="<?php echo ASTRA_THEME_URI; ?>img/pic/icon-right.png" /></a></div>
									</div>
								</div>
							</div>
							<div class="item flex-1">
								<div class="block-circle">
									<div class="circle"></div>
									<div class="circle"></div>
									<div class="circle"></div>
								</div>
								<div class="block-1"></div>
								<div class="block-2">
									<div class="block-top flex">
										<div class="block-2-img"></div>
										<div class="block-2-txt">
											<div class="name">极光</div>
											<p>AI边缘算法盒子</p>
										</div>
									</div>

									<div class="list">
										<div class="name">面向产业应用方与合作伙伴</div>
										<div class="list-li">30+AI算法自由组合 </div>
										<div class="list-li">4~16路实时视频流</div>
										<div class="list-li">云边协同管理平台</div>
										<div class="list-li">多种应用场景适用</div>
										<div class="more"><a href=""><img src="<?php echo ASTRA_THEME_URI; ?>img/pic/icon-right.png" /></a></div>
									</div>
								</div>
							</div>
							<div class="item flex-1">
								<div class="block-circle">
									<div class="circle"></div>
									<div class="circle"></div>
									<div class="circle"></div>
								</div>
								<div class="block-1"></div>
								<div class="block-2">
									<div class="block-top flex">
										<div class="block-2-img"></div>
										<div class="block-2-txt">
											<div class="name">极栈</div>
											<p>私有化AI中台</p>
										</div>
									</div>

									<div class="list">
										<div class="name">面向政企与科研机构</div>
										<div class="list-li">数据智能自动标注</div>
										<div class="list-li">低代码便捷开发</div>
										<div class="list-li">系统资源可视化</div>
										<div class="list-li">数据沙箱隔离防护</div>
										<div class="more"><a href=""><img src="<?php echo ASTRA_THEME_URI; ?>img/pic/icon-right.png" /></a></div>
									</div>
								</div>
							</div>
							<div class="item flex-1">
								<div class="block-circle">
									<div class="circle"></div>
									<div class="circle"></div>
									<div class="circle"></div>
								</div>
								<div class="block-1"></div>
								<div class="block-2">
									<div class="block-top flex">
										<div class="block-2-img"></div>
										<div class="block-2-txt">
											<div class="name">极市</div>
											<p>算法开发训练平台</p>
										</div>
									</div>

									<div class="list">
										<div class="name">面向算法开发者</div>
										<div class="list-li">一站式AI算法开发</div>
										<div class="list-li">支持主流开发环境</div>
										<div class="list-li">丰富的算法开发工具</div>
										<div class="list-li">独家自动测试框架</div>
										<div class="more"><a href=""><img src="<?php echo ASTRA_THEME_URI; ?>img/pic/icon-right.png" /></a></div>
									</div>
								</div>
							</div>
						</div>
					</div>
				</div>
			</div>
			<div class="project">
				<div class="lz-title wow animated fadeInUp">300+项目案例助力各行业智能化升级</div>
				<div class="lz-tips wow animated fadeInUp">勒兹AI视觉算法赋能千行百业，加快科技变革</div>
				<div class="SwiperBox warp wow animated fadeInUp" >
				 <?php $c_index = 1;$a_index = 1;$ca_index = 1;?>
                    <?php
                    $a= 4;
                    $args=array(
                    'orderby'    => 'id',
                    'hide_empty' => "0",
                    'child_of' => $a,//可以换为：'child_of' => '1',
                    );
                    $categories=get_categories($args);
                    foreach($categories as $category) {
                    ?>

                    	<?php $display_categories = array($category->term_id); foreach ($display_categories as $category->term_id) { ?>
                    	<?php query_posts("showposts=1&cat=$category->term_id&tag=home")?>
                    	<?php while (have_posts()) : the_post(); ?>
							<div class="swiper-item swiper-item-active act case_<?php echo $ca_index;?>">
								<img class="imgcss pc-show" src="<?php echo catch_that_image() ?>" />
								<div class="cont">
									<div class="cont-title" style="margin-top:0px;margin-bottom:16px;"><?php echo get_post_meta($post->ID, 'type_name', true); ?></div>
									<div class="cont-title" style="font-size:18px;margin-top:0px;"><?php the_title(); ?></div>
									<div class="cont-tips"><?php the_excerpt(); ?></div>
									<a href="<?php the_permalink()?>" class="seemore">了解详情</a>
									
								</div>
								<img class="imgcss pc-hide" src="<?php echo catch_that_image() ?>" />
							</div>
							
                    	<?php endwhile; ?>	
						<?php $ca_index++;?>
                    	<?php } wp_reset_query();?>
                    <?php }?>
					
					<!-- 下方指示点容器 -->
					<div class="instBox" id="in_<?php echo $ca_index ?>" @mouseover="handleOver2">
						<?php
						$a= 4;
						$args=array(
						'orderby'    => 'id',
						'hide_empty' => "0",
						'child_of' => $a,//可以换为：'child_of' => '1',
						);
						$categories=get_categories($args);
						foreach($categories as $category) {
						?>
						<div  @click="handleClick2" class="inst case_b_<?php echo $c_index;?>" id="case_<?php echo $c_index ?>">
						  <?php echo $category->name; ?>
						</div>
						<?php $c_index++;?>
						<?php }?>
						
					</div>
					<div class="tagging">
						<img src="<?php echo ASTRA_THEME_URI; ?>img/icon/icon-sj.png" />
						
						<?php
						$a= 4;
						$args=array(
						'orderby'    => 'id',
						'hide_empty' => "0",
						'child_of' => $a,//可以换为：'child_of' => '1',
						);
						$categories=get_categories($args);
						foreach($categories as $category) {
						?>
						<div class="name act case_a_<?php echo $a_index;?>"><?php echo $category->name; ?></div>
						<?php $a_index++;?>
						<?php }?>
					</div>
				</div>
			</div>
			<div class="cooperate">
				<div class="lz-title wow animated fadeInUp">3000+产业客户与技术合作伙伴信赖之选</div>
				<div class="lz-tips wow animated fadeInUp">开放合作，共赢生态发展，共创产业价值</div>
				<div class="warp">
					<div class="coop-item flex wow animated fadeInUp">
						<div class="coop-type">
							<img src="<?php echo ASTRA_THEME_URI; ?>img/pic/coop_1.png" />
							<div class="name">标杆客户</div>
						</div>
						<div class="coop-list flex flex-wrap">
							<a v-for="item in 33"><img src="<?php echo ASTRA_THEME_URI; ?>img/icon/logo.png" /></a>
						</div>
					</div>
					<div class="coop-item flex wow animated fadeInUp">
						<div class="coop-type">
							<img src="<?php echo ASTRA_THEME_URI; ?>img/pic/coop_2.png" />
							<div class="name">合作伙伴</div>
						</div>
						<div class="coop-list flex flex-wrap">
							<a v-for="item in 33"><img src="<?php echo ASTRA_THEME_URI; ?>img/icon/logo.png" /></a>
						</div>
					</div>
					<div class="coop-item flex wow animated fadeInUp">
						<div class="coop-type">
							<img src="<?php echo ASTRA_THEME_URI; ?>img/pic/coop_3.png" />
							<div class="name">开发者生态</div>
						</div>
						<div class="coop-list flex flex-wrap">
							<a v-for="item in 33"><img src="<?php echo ASTRA_THEME_URI; ?>img/icon/logo.png" /></a>
						</div>
					</div>
				</div>
			</div>
			<div class="news">
				<div class="lz-title wow animated fadeInUp">最新资讯</div>
				<div class="lz-tips wow animated fadeInUp">掌握勒兹最新资讯、动态</div>
				<div class="warp">
					<div class="new-tab wow animated bounce">
						<span class="tab-list tab-active">最新咨讯</span>
						<?php
						$a= 5;
						$args=array(
						'orderby'    => 'id',
						'hide_empty' => "0",
						'child_of' => $a,//可以换为：'child_of' => '1',
						);
						$categories=get_categories($args);
						foreach($categories as $category) {
						?>
						<a href="<?php echo get_category_link( $category->term_id ) ?>#F2 " class="tab-list <?php if($c == $category->term_id){ echo 'tab-active';} ?>" ><?php echo $category->name; ?></a>
						<?php }?>
						
					</div>
					<div class="new-list flex">
						<div class="new-left-list flex wow animated slideInLeft">
							<?php $category = 5;?>
							<?php $display_categories = array($category); foreach ($display_categories as $category) { ?>
							<?php query_posts("showposts=2&cat=$category&tag=new")?>
							<?php while (have_posts()) : the_post(); ?>
							<div class="list">
								<div class="f-img">
									<a href="<?php the_permalink() ?>"><img src="<?php echo catch_that_image() ?>" /></a>
									<span><?php the_time('Y年n月j日'); ?></span>
								</div>
								<div class="cont-text">
									<a href="<?php the_permalink() ?>">
										<h3 class='line-clamp'><?php the_title(); ?></h3>
									</a>
									<p><?php the_excerpt(); ?></p>
								</div>
							</div>
						
							<?php endwhile; ?>
							<?php } wp_reset_query();?>
						</div>
						<div class="new-right-list wow animated slideInRight">
							<?php $category = 5;?>
							<?php $display_categories = array($category); foreach ($display_categories as $category) { ?>
							<?php query_posts("showposts=3&cat=$category&tag=hot")?>
							<?php while (have_posts()) : the_post(); ?>
							<div class="list">
								<div class="f-img">
									<a href="<?php the_permalink() ?>"><img src="<?php echo catch_that_image() ?>" /></a>
									
								</div>
								<div class="cont-text">
								    <span><?php the_time('Y年n月j日'); ?></span>
									<a href="<?php the_permalink() ?>">
										<h3 class='line-clamp'><?php the_title(); ?></h3>
									</a>
									<p><?php the_excerpt(); ?></p>
								</div>
							</div>
													
							<?php endwhile; ?>
							<?php } wp_reset_query();?>
						</div>
					</div>
				</div>
			</div>

		<?php include("footer.php");?>
		<script>
			new Vue({
				el: '#app',
				data: function() {
					return {
						ai_num:1,
						ca_num:1,
						ai_index: 1,
						ai_list: ['建筑地产', '智慧城管', '智慧工业', '智慧能源', '智慧交通', '智慧园区', '智慧零售', '智慧油站','建筑地产', '智慧城管', '智慧工业', '智慧能源', '智慧交通', '智慧园区', '智慧零售', '智慧油站'],
						ShowImg: 1, // 表示当前显示的图片
						flag: true, // 用来节流防止重复点击
						start: null, // 自动执行下一张定时器

					}
				},
				created() {

				},
				mounted() {
					// this.setTimeoFun()
					document.querySelector('.box_1').classList.add('act1');
					document.querySelector('.bob_1').classList.add('vis-right-item-active');
					document.querySelector('.case_1').classList.add('act2');
					document.querySelector('.case_b_1').classList.add('instActv');
					document.querySelector('.case_a_1').classList.add('act1');
				},
				methods: {
					handleOver(event){
						this.ai_num = event.currentTarget.id
					},
					handleClick(event) {
						let key = event.currentTarget.id
						for(let index in this.ai_list){
							if( index < this.ai_num - 1){
								document.querySelector('.box_'+ (Number(index) + 1)).classList.remove('act1');
								document.querySelector('.bob_'+ (Number(index) + 1)).classList.remove('vis-right-item-active');
							}
						}
						document.querySelector('.bob_'+key).classList.add('vis-right-item-active');
						document.querySelector('.box_'+key).classList.add('act1');	
					},
					handleOver2(event){
						let key = event.currentTarget.id
						this.ca_num = key.split('_')[1]
					},
					handleClick2(event) {
						let id = event.currentTarget.id
						let key = id.split('_')[1]
						this.ShowImg = id.split('_')[1]
						for(let index in this.ai_list){
							if( index < this.ca_num - 1){
								document.querySelector('.case_'+ (Number(index) + 1)).classList.remove('act2');
								document.querySelector('.case_b_'+ (Number(index) + 1)).classList.remove('instActv');
								document.querySelector('.case_a_'+ (Number(index) + 1)).classList.remove('act1');
							}
						}
						document.querySelector('.case_a_'+key).classList.add('act1');
						document.querySelector('.case_b_'+key).classList.add('instActv');
						document.querySelector('.case_'+key).classList.add('act2');	
						// setTimeout(() => {
						// 	this.NextFun()
						// }, 5000);
					},
					// 这里定义一个鼠标移入移出事件，鼠标悬停时停止自动轮播，鼠标移出则重新执行自动轮播
					MouseFun(type) { // 停止定时器            // 重新执行定时器
						type == 'in' ? clearTimeout(this.start) : this.setTimeoFun()
					},
					setTimeoFun() {
						this.start = setInterval(() => {
							this.NextFun()
						}, 5000)
					},
					// 这里通过额外封装的节流函数触发 PrevFun() 和 NextFun(),以达到防止重复点击的效果
					throttle(fun) {
						if (this.flag) {
							this.flag = false;
							fun(); // 此为模板中传递进来的PrevFun()或NextFun()函数
							setTimeout(() => {
								this.flag = true;
							}, 3000); // 节流间隔时间
						}
					},
					// 下一张
					NextFun() {
						if (this.ShowImg < this.ca_num - 1) {
							this.ShowImg++
						} else {
							this.ShowImg = 1
						}
						for(let index in this.ai_list){
							if( index < this.ca_num - 1){
								document.querySelector('.case_'+ (Number(index) + 1)).classList.remove('act2');
								document.querySelector('.case_b_'+ (Number(index) + 1)).classList.remove('instActv');
								document.querySelector('.case_a_'+ (Number(index) + 1)).classList.remove('act1');
							}
						}
						document.querySelector('.case_a_'+this.ShowImg).classList.add('act1');
						document.querySelector('.case_b_'+this.ShowImg).classList.add('instActv');
						document.querySelector('.case_'+this.ShowImg).classList.add('act2');	
						this.setTimeoFun()
					},
				}
			})
			
		</script>
	</body>
</html>